# include <stdio.h>
int main()
{
    int i;
    int n=0;
    int a[10]; 


scanf("%d",&i);

    while(i)
	{
        a[n]=i%10;
        n++;
        i=i/10;

}
    for(n=0;n<=9;n++)
{
     printf("%d",a[n]);
}
return 0;
}
